package com.afei.java.ai.langchain4j.assisant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/**
 * @Title: SeparateChatAssisant
 * @Author wangyf
 * @Package com.afei.java.ai.langchain4j.assisant
 * @Date 2025/4/23 10:38
 * @description: 隔离记忆
 */


@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "calculatorTools"
)
public interface SeparateChatAssisant {

    //@SystemMessage("你是我的好朋友，请用天津话回答问题。今天是{{current_date}}")
    @SystemMessage(fromResource = "my-prompt-template.txt")
    String chat(@MemoryId int memoryId, @UserMessage String message);
}
